package com.shangxian.giveithome.entity.petCard;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author coderFu
 * @create 2021/5/2
 */
@Data
@ApiModel("宠牌信息表")
public class PetCard {

    @ApiModelProperty("自增id")
    private Long id;

    @ApiModelProperty("宠物名称")
    private String petName;

    @ApiModelProperty("宠物品种")
    private int petVariety;

    @ApiModelProperty("宠物类别")
    private String petType;

    @ApiModelProperty("宠物性别")
    private String petSex;

    @ApiModelProperty("宠物生日")
    private String petBirthday;

    @ApiModelProperty("图片组id")
    private Long keyId;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("手机号")
    private Long phone;

    @ApiModelProperty("微信号")
    private String wechat;

    @ApiModelProperty("所在省份")
    private String province;

    @ApiModelProperty("城市")
    private String city;

    @ApiModelProperty("地区")
    private String county;

    @ApiModelProperty("详细地址")
    private String address;

    @ApiModelProperty("丢失寄语")
    private String loseMessage;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    private Date updateTime;

    @ApiModelProperty("宠物毛色")
    private String petColor;

    @ApiModelProperty("狗证状态0未办理，1已办理")
    private int state;

    @ApiModelProperty("用户身份证信息")
    private String identityId;





}
